package com.yangyouli.unity_demo_server.util;

import java.util.regex.Pattern;

public class Check {

	/**
	 * 检查是否是一个邮箱地址
	 * @param emailAddress
	 * @return
	 */
	public static boolean isEmailAddress (String emailAddress) {
		String pattren = "([a-zA-Z0-9_\\.\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,5})+";
		return Pattern.matches(pattren, emailAddress);
	}
}
